<%@ page language="java" contentType="application/octet-stream;charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="com.welfare.admin.call.*" %>
<%
	out.clear();
	out = pageContext.pushBody(); 
	
	
	String excelTitle = "내부게시판";
	
	response.setHeader("Content-Disposition","attachment;filename="+java.net.URLEncoder.encode(excelTitle, "utf-8")+"_"+StringUtil.today()+".xls");
	response.setHeader("Content-Description","JSP Generated Data");

	String counsel_kind		= StringUtil.nvl(request.getParameter("counsel_kind"));
	String counsel_part		= StringUtil.nvl(request.getParameter("counsel_part"));
	String subject				= StringUtil.nvl(request.getParameter("subject"));
	
	HashMap infos = new HashMap();
	infos.put("counsel_kind", counsel_kind);
	infos.put("counsel_part", counsel_part);
	infos.put("subject", subject);
	

	infos.put("no_html", "<[^>]*>");
	CallDAO dao 	= new CallDAO();
	HashList list 	= dao.selectManualList(infos);

	list.setHeader("notice_yn",		"공지",		MetaData.ALIGN_CENTER);
	list.setHeader("counsel_kind",	"분류1",		MetaData.ALIGN_LEFT);
	list.setHeader("counsel_part",	"분류2",		MetaData.ALIGN_LEFT);
	list.setHeader("subject", 		"제목",		MetaData.ALIGN_LEFT);
	list.setHeader("content_info", 	"내용",		MetaData.ALIGN_LEFT);
	list.setHeader("hit_count", 	"조회수",	MetaData.ALIGN_RIGHT);
	
	list.writeToExcel(response, excelTitle);
%>
						
